home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 2.iso / dist / fw_glimpse.idb / usr / freeware / src / glimpse-3.0 / libtemplate / Makefile.NeXT.z / Makefile.NeXT
Makefile  |  1997-09-09  |  5KB  |  103 lines

  1. #
  2. #  Makefile for the common source directory
  3. #
  4. #  $Id: Makefile.in,v 1.10 1994/09/30 22:11:28 hardy Exp $
  5. #
  6. SUBDIRS        = util template #md5 util url template
  7. DEBUG_TOP    = #-O #-g #-DDEBUG
  8.  
  9. prefix = /usr/local/harvest
  10. INSTALL_BINDIR    = $(prefix)/bin
  11. INSTALL_LIBDIR    = $(prefix)/lib
  12. INSTALL_MANDIR     = $(prefix)/man
  13.  
  14. SHELL        = /bin/sh
  15. CC = gcc
  16. INSTALL        = cp #install -c
  17. INSTALL_BIN     = ${INSTALL}
  18. INSTALL_FILE     = ${INSTALL} #-m 644
  19. RANLIB        = /bin/ranlib
  20. LN_S        = ln -s
  21. XTRA_LIBS    =  -lresolv -lm
  22. XTRA_LIBS    = -lm
  23.  
  24.  
  25. # old variables for backward compatability
  26. INSTALLDIR     = $(INSTALL_BINDIR)
  27. INSTALL_SCRIPT     = $(INSTALL_BIN)
  28.  
  29. INSTALL_DIRS    = $(prefix) $(INSTALL_BINDIR) $(INSTALL_LIBDIR) \
  30.           $(INSTALL_MANDIR)
  31.  
  32. all:    #all-gdbm
  33.     @for dir in $(SUBDIRS); do \
  34.         echo Making $@ in $$dir; \
  35.         (cd $$dir; $(MAKE) $(MFLAGS) CC="$(CC)" SUBDIRCFLAGS="$(SUBDIRCFLAGS)" SUBDIRLINKFLAGS="$(SUBDIRLINKFLAGS)" SHELL="$(SHELL)" HAVE_DIRENT_H="$(HAVE_DIRENT_H)" HAVE_SYS_DIR_H="$(HAVE_SYS_DIR_H)" HAVE_SYS_NDIR_H="$(HAVE_SYS_NDIR_H)" HAVE_NDIR_H="$(HAVE_NDIR_H)" UTIME="$(UTIME)" STRUCTURED_QUERIES="$(STRUCTURED_QUERIES)" ISO_CHAR_SET="$(ISO_CHAR_SET)" SFS_COMPAT="$(SFS_COMPAT)"\
  36.             INSTALL_BINDIR="$(INSTALL_BINDIR)" \
  37.             INSTALL_LIBDIR="$(INSTALL_LIBDIR)" \
  38.             INSTALL_MANDIR="$(INSTALL_MANDIR)" \
  39.             RANLIB="$(RANLIB)" \
  40.             DEBUG_TOP="$(DEBUG_TOP)" \
  41.             INSTALL_BIN="$(INSTALL_BIN)" \
  42.             INSTALL_FILE="$(INSTALL_FILE)" \
  43.             INSTALLDIR="$(INSTALL_BINDIR)" \
  44.             INSTALL_SCRIPT="$(INSTALL_SCRIPT)" -f Makefile.NeXT $@); \
  45.     done
  46.  
  47. install:
  48.     @for dir in $(SUBDIRS); do \
  49.         echo Making $@ in $$dir; \
  50.         (cd $$dir; $(MAKE) $(MFLAGS) CC="$(CC)" SUBDIRCFLAGS="$(SUBDIRCFLAGS)" SUBDIRLINKFLAGS="$(SUBDIRLINKFLAGS)" SHELL="$(SHELL)" HAVE_DIRENT_H="$(HAVE_DIRENT_H)" HAVE_SYS_DIR_H="$(HAVE_SYS_DIR_H)" HAVE_SYS_NDIR_H="$(HAVE_SYS_NDIR_H)" HAVE_NDIR_H="$(HAVE_NDIR_H)" UTIME="$(UTIME)" STRUCTURED_QUERIES="$(STRUCTURED_QUERIES)" ISO_CHAR_SET="$(ISO_CHAR_SET)" SFS_COMPAT="$(SFS_COMPAT)"\
  51.             INSTALL_BINDIR="$(INSTALL_BINDIR)" \
  52.             INSTALL_LIBDIR="$(INSTALL_LIBDIR)" \
  53.             INSTALL_MANDIR="$(INSTALL_MANDIR)" \
  54.             RANLIB="$(RANLIB)" \
  55.             INSTALL_BIN="$(INSTALL_BIN)" \
  56.             INSTALL_FILE="$(INSTALL_FILE)" \
  57.             INSTALLDIR="$(INSTALL_BINDIR)" \
  58.             INSTALL_SCRIPT="$(INSTALL_SCRIPT)" -f Makefile.NeXT $@); \
  59.     done
  60.  
  61. clean:
  62.     -@for dir in lib $(SUBDIRS); do \
  63.         echo Making $@ in $$dir; \
  64.         (cd $$dir; $(MAKE) $(MFLAGS) CC="$(CC)" SUBDIRCFLAGS="$(SUBDIRCFLAGS)" SUBDIRLINKFLAGS="$(SUBDIRLINKFLAGS)" SHELL="$(SHELL)" HAVE_DIRENT_H="$(HAVE_DIRENT_H)" HAVE_SYS_DIR_H="$(HAVE_SYS_DIR_H)" HAVE_SYS_NDIR_H="$(HAVE_SYS_NDIR_H)" HAVE_NDIR_H="$(HAVE_NDIR_H)" UTIME="$(UTIME)" STRUCTURED_QUERIES="$(STRUCTURED_QUERIES)" ISO_CHAR_SET="$(ISO_CHAR_SET)" SFS_COMPAT="$(SFS_COMPAT)"\
  65.             INSTALL_BINDIR="$(INSTALL_BINDIR)" \
  66.             INSTALL_LIBDIR="$(INSTALL_LIBDIR)" \
  67.             INSTALL_MANDIR="$(INSTALL_MANDIR)" \
  68.             RANLIB="$(RANLIB)" \
  69.             INSTALL_BIN="$(INSTALL_BIN)" \
  70.             INSTALL_FILE="$(INSTALL_FILE)" \
  71.             INSTALLDIR="$(INSTALL_BINDIR)" \
  72.             INSTALL_SCRIPT="$(INSTALL_SCRIPT)" $@); \
  73.     done
  74.  
  75. #realclean:    clean
  76. #    -rm -f Makefile include/autoconf.h include/paths.h config.status *~ core
  77. #    -@for dir in gdbm lib $(SUBDIRS); do \
  78. #        echo Making $@ in $$dir; \
  79. #        (cd $$dir; $(MAKE) $(MFLAGS) CC="$(CC)" SUBDIRCFLAGS="$(SUBDIRCFLAGS)" SUBDIRLINKFLAGS="$(SUBDIRLINKFLAGS)" SHELL="$(SHELL)" HAVE_DIRENT_H="$(HAVE_DIRENT_H)" HAVE_SYS_DIR_H="$(HAVE_SYS_DIR_H)" HAVE_SYS_NDIR_H="$(HAVE_SYS_NDIR_H)" HAVE_NDIR_H="$(HAVE_NDIR_H)" UTIME="$(UTIME)" STRUCTURED_QUERIES="$(STRUCTURED_QUERIES)" ISO_CHAR_SET="$(ISO_CHAR_SET)" SFS_COMPAT="$(SFS_COMPAT)"\
  80. #            INSTALL_BINDIR="$(INSTALL_BINDIR)" \
  81. #            INSTALL_LIBDIR="$(INSTALL_LIBDIR)" \
  82. #            INSTALL_MANDIR="$(INSTALL_MANDIR)" \
  83. #            RANLIB="$(RANLIB)" \
  84. #            INSTALL_BIN="$(INSTALL_BIN)" \
  85. #            INSTALL_FILE="$(INSTALL_FILE)" \
  86. #            INSTALLDIR="$(INSTALL_BINDIR)" \
  87. #            INSTALL_SCRIPT="$(INSTALL_SCRIPT)" $@); \
  88. #    done
  89.  
  90. #
  91. #  Compiles and installs gdbm from scratch.  Works with gdbm-1.7.3
  92. #
  93. all-gdbm:
  94.     @echo Making all in gdbm
  95.     @rm -f gdbm/autoconf.h
  96.     @$(LN_S) ../include/autoconf.h gdbm/autoconf.h
  97.     @(cd gdbm; \
  98.         $(MAKE) $(MFLAGS) -f Makefile.NeXT CC="$(CC)" SUBDIRCFLAGS="$(SUBDIRCFLAGS)" SUBDIRLINKFLAGS="$(SUBDIRLINKFLAGS)" SHELL="$(SHELL)" HAVE_DIRENT_H="$(HAVE_DIRENT_H)" HAVE_SYS_DIR_H="$(HAVE_SYS_DIR_H)" HAVE_SYS_NDIR_H="$(HAVE_SYS_NDIR_H)" HAVE_NDIR_H="$(HAVE_NDIR_H)" UTIME="$(UTIME)" STRUCTURED_QUERIES="$(STRUCTURED_QUERIES)" ISO_CHAR_SET="$(ISO_CHAR_SET)" SFS_COMPAT="$(SFS_COMPAT)" gdbm.h libgdbm.a; \
  99.         $(INSTALL_FILE) gdbm.h ../include/gdbm.h; \
  100.         $(INSTALL_FILE) libgdbm.a ../lib/libgdbm.a; \
  101.         $(RANLIB) ../lib/libgdbm.a \
  102.     )
  103.